//
//  NotesViewController.m
//  didipai
//
//  Created by wangjia_01 on 16/3/7.
//  Copyright © 2016年 wangjia_01. All rights reserved.
//

#import "NotesViewController.h"
#import "NotesCell.h"
@interface NotesViewController ()<UITableViewDelegate,UITableViewDataSource>
@property (weak, nonatomic) IBOutlet UIButton *backButton;
@property (weak, nonatomic) IBOutlet UITableView *tableView;

@end

@implementation NotesViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self customTableview];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (IBAction)back:(UIButton *)sender {
}

-(void)customTableview
{
    self.tableView.delegate = self;
    self.tableView.dataSource = self;
    
    //注册单元格
    [self.tableView registerNib:[UINib nibWithNibName:@"NotesCell" bundle:nil] forCellReuseIdentifier:@"NotesCell"];
}

#pragma mark -tableView

-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 3;
}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    NotesCell * cell = [tableView dequeueReusableCellWithIdentifier:@"NotesCell"];
    return cell;
}

-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    return 142;
}

@end
